package com.intellagric.interfaces.sys_user;


import com.intellagric.common.bean.LayuiDataGridResult;
import com.intellagric.common.bean.ResponseMessage;
import com.intellagric.pojo.SysUser;

/**
 * @Auther: zhy
 * @Date: 2018/10/4
 * @Description: 用户服务管理
 */
public interface UserService {

    //增加用户和角色信息
    ResponseMessage addUser(SysUser sysUser);

    //删除用户
    ResponseMessage deleteUser(String id);

    ResponseMessage batchDelete(String[] ids);

    //修改用户信息和角色信息
    ResponseMessage editUser(SysUser sysUser);

    //查询用户
   SysUser getUserById(String id);
    LayuiDataGridResult getUserList();
    LayuiDataGridResult getUserList(int page, int rows, String keyword);

//验证姓名是否已经存在
    ResponseMessage verifyUserName(String name);

}
